<?php

//基础权限
$base = array(
    "index_welcome" => 1,
);

//管理员权限
$manage = array_merge($base, array(
    
));

//系统管理员权限
$admin = array_merge($base, $manage, array(
    "gameconfig_gameconfiglist" => 1,
    "gameconfig_editgameconfig" => 1
));

//超管理权限
$superAdmin = array_merge($base, $manage, $admin, array(
    "admin_lists" => 1,
    "admin_add" => 1,
    'admin_edit' => 1
));

//导航列表
$menuList = array(
    "index_welcome" => array(
        "name" => "欢迎页",
        "url" => "/index.php/Game/Index/welcome",
    ),
    "game" => array(
        "name" => "游戏配置管理",
        "sub" => array(
            "gameconfig_gameconfiglist" => array(
                "name" => "游戏配置列表",
                "url" => "/index.php/Game/GameConfig/gameConfigList"
            ),
            "gameconfig_editgameconfig" => array(
                "name" => "编辑游戏配置",
                "hide" => true//不在导航显示
            ),
        )
    ),
    "admin" => array(
        "name" => "管理员管理",
        "sub" => array(
            "admin_lists" => array(
                "name" => "管理员列表",
                "url" => "/index.php/Game/Admin/lists"
            ),
            "admin_add" => array(
                "name" => "添加管理员",
                "url" => "/index.php/Game/Admin/add",
                "hide" => true//不在导航显示
            ),
            "admin_edit" => array(
                "name" => "编辑管理员",
                "url" => "/index.php/Game/Admin/edit",
                "hide" => true//不在导航显示
            )
        )
    )
);

return array(
    "roleAuth" => array(
        "manage" => $manage,
        "admin" => $admin,
        "superAdmin" => $superAdmin
    ),
    "menuList" => $menuList
);
